|
In numerical analysis, LU decomposition (where 'LU' stands for 'lower upper', and also called LU factorization) factors a matrix as the product of a lower triangular matrix and an upper triangular matrix. The product sometimes includes a permutation matrix as well. The LU decomposition can be viewed as the matrix form of Gaussian elimination. Computers usually solve square systems of linear equations using the LU decomposition, and it is also a key step when inverting a matrix, or computing the determinant of a matrix. The LU decomposition was introduced by mathematician Alan Turing in 1948. == Definitions == Let ''A'' be a square matrix. An LU factorization refers to the factorization of A, with proper row and/or column orderings or permutations, into two factors, a lower triangular matrix ''L'' and an upper triangular matrix ''U'', : In the lower triangular matrix all elements above the diagonal are zero, in the upper triangular matrix, all the elements below the diagonal are zero. For example, for a 3-by-3 matrix ''A'', its LU decomposition looks like this: : Without a proper ordering or permutations in the matrix, the factorization may fail to materialize. For example, it is easy to verify (by expanding the matrix multiplication) that . If , then at least one of and has to be zero, which implies either ''L'' or ''U'' is singular. This is impossible if ''A'' is nonsingular. This is a procedural problem. It can be removed by simply reordering the rows of ''A'' so that the first element of the permuted matrix is nonzero. The same problem in subsequent factorization steps can be removed the same way; see the basic procedure below. It turns out that a proper permutation in rows (or columns) is sufficient for the LU factorization. The LU factorization with Partial Pivoting refers often to the LU factorization with row permutations only, : where ''L'' and ''U'' are again lower and upper triangular matrices, and ''P'' is a permutation matrix which, when left-multiplied to ''A'', reorders the rows of ''A''. It turns out that all square matrices can be factorized in this form,〔, Corollary 3〕 and the factorization is numerically stable in practice.〔, p. 166〕 This makes LUP decomposition a useful technique in practice. An LU factorization with full pivoting involves both row and column permutations, : where ''L'', ''U'' and ''P'' are defined as before, and ''Q'' is a permutation matrix that reorders the columns of ''A''.〔, p. 161〕 An LDU decomposition is a decomposition of the form : where ''D'' is a diagonal matrix and ''L'' and ''U'' are ''unit'' triangular matrices, meaning that all the entries on the diagonals of ''L'' and ''U'' are one. Above we required that ''A'' be a square matrix, but these decompositions can all be generalized to rectangular matrices as well. In that case, ''L'' and ''D'' are square matrices both of which have the same number of rows as ''A'', and ''U'' has exactly the same dimensions as ''A''. ''Upper triangular'' should be interpreted as having only zero entries below the main diagonal, which starts at the upper left corner. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「LU decomposition」の詳細全文を読む スポンサード リンク
|